home *** CD-ROM | disk | FTP | other *** search
- #ifndef Point_H_IS_INCLUDED
- #define Point_H_IS_INCLUDED
- #include <IOs.h>
- #include <math.h>
- #include <stdio.h>
- struct Point
- {
- real x,y,z;
- Point () { x=y=z=0; } // constructor without args
- Point (const Point& p) { x=p.x; y=p.y; z=p.z; } // copy constructor
- Point& operator = (const Point& p);
- friend Is& operator >> (Is& is, Point& p) { is>>p.x>>p.y>>p.z; return is; }
- friend Os& operator << (Os& os, const Point& p);
- };
- #endif
-